package com.md.lesson1;

import java.util.Scanner;

public class Calculate {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		
		System.out.print("请输入第一个数字；");
		double a = scan.nextDouble();
		
		System.out.print("请输入第二个数字；");
		double b = scan.nextDouble();
		
		System.out.println("两数相加=" + (a+b));
		System.out.println("两数相减=" + (a-b));
		System.out.println("两数相乘=" + (a*b));
		System.out.println("两数相除=" + (a/b));
		System.out.println("两数的余数为=" + (a%b));
	}

}
